<template>
  <div id="course-details">
    <div class="introductions">
      <div class="video">
        <video src="http://vjs.zencdn.net/v/oceans.mp4"></video>
        <div class="mask">
          <Icon type="md-arrow-dropright-circle" />
        </div>
      </div>
      <div class="info">
        <div class="name">XXXXXXXXX教学演练</div>
        <div class="detail">
          <div>授课教师：张三 教员 课程发布时间：2018年7月10日</div>
          <div>最近157人点播  |  好评率：96% </div>
        </div>
        <ul class="ratings">
          <li>
            <span class="name">课堂内容充实，简单明了</span>
            <Rate disabled show-text allow-half v-model="2.5">
                <span style="color: #f5a623">{{ 2.5 }}</span>
            </Rate>
          </li>
          <li>
            <span class="name">教学内容丰富有效</span>
            <Rate disabled show-text allow-half v-model="2.5">
                <span style="color: #f5a623">{{ 2.5 }}</span>
            </Rate>
          </li>
          <li>
            <span class="name">老师教学认真，课堂效率高</span>
            <Rate disabled show-text allow-half v-model="2.5">
                <span style="color: #f5a623">{{ 2.5 }}</span>
            </Rate>
          </li>
        </ul>
      </div>
    </div>
    <div class="desc">
      <Tabs value="name1">
        <TabPane label="教师介绍" name="name1" class="teacher-introduction">
          <ul class="wrap">
            <li class="item">
              <div class="avatar-wrap">
                <img src="../../assets/img/avatar.png">
              </div>
              <ul class="introduction">
                <li>
                  <span>主讲：</span>
                  <span>张三教员</span>
                </li>
                <li>
                  <span>简介：</span>
                  <span>张三，海军大连舰艇学院XX系教员，多年从事XX方面研究，具备丰富的理论研究和教学经验。</span>
                </li>
              </ul>
            </li>
            <li class="item">
              <div class="avatar-wrap">
                <img src="../../assets/img/avatar.png">
              </div>
              <ul class="introduction">
                <li>
                  <span>助教：</span>
                  <span>王二教员</span>
                </li>
                <li>
                  <span>简介：</span>
                  <span>王二，海军大连舰艇学院XX系教员，多年从事XX方面研究，具备丰富的理论研究和教学经验。</span>
                </li>
              </ul>
            </li>
            <li class="item">
              <div class="avatar-wrap">
                <img src="../../assets/img/avatar.png">
              </div>
              <ul class="introduction">
                <li>
                  <span>助教：</span>
                  <span>李四教员</span>
                </li>
                <li>
                  <span>简介：</span>
                  <span>李四，海军大连舰艇学院XX系教员，多年从事XX方面研究，具备丰富的理论研究和教学经验。</span>
                </li>
              </ul>
            </li>
            <li class="item" v-for="item in 3">
              <div class="avatar-wrap">
                <img src="../../assets/img/avatar.png">
              </div>
              <ul class="introduction">
                <li>
                  <span>助教：</span>
                  <span>李四教员</span>
                </li>
                <li>
                  <span>简介：</span>
                  <span>李四，海军大连舰艇学院XX系教员，多年从事XX方面研究，具备丰富的理论研究和教学经验。</span>
                </li>
              </ul>
            </li>
          </ul>
        </TabPane>
        <TabPane label="课前调查" name="name2" class="pre-class-survey">
          <Row :gutter="20" style="margin-top: 10px;">
            <i-col :md="24" :lg="24" style="margin-bottom: 20px;">
              <Card shadow>
                <chart-pie style="height: 300px;" :value="pieData" text="用户访问来源"></chart-pie>
              </Card>
            </i-col>
          </Row>
        </TabPane>
        <TabPane label="交互过程观点统计" name="name3" class="opinion-statistics">
          <Row :gutter="20" style="margin-top: 10px;">
            <i-col :md="24" :lg="24" style="margin-bottom: 20px;">
              <Card shadow>
                <chart-pie style="height: 300px;" :value="pieData" text="用户访问来源"></chart-pie>
              </Card>
            </i-col>
          </Row>
        </TabPane>
        <TabPane label="专家点评" name="name4" class="expert-reviews">
          <div class="rating-detail">
            <ul class="rating-detail-wrap">
              <li class="rating-item">
                <div class="avatar">
                  <img src="../../assets/img/avatar.png">
                  <div class="name">张某某</div>
                </div>
                <div class="rating-area">
                  <div class="rating-star">
                    <Rate disabled allow-half v-model="2.5">
                    </Rate>
                  </div>
                  <div class="rating-content">专家点评内容！！！！</div>
                  <div class="rating-time">2018-07-11 12:17:06</div>
                </div>
              </li>
            </ul>
          </div>
          <div class="page">
            <Page :total="100" />
          </div>
        </TabPane>
        <TabPane label="学员讨论" name="name5" class="student-discussion">
          <div class="page">
            <Page :total="100" />
          </div>
        </TabPane>
      </Tabs>
    </div>
  </div>
</template>
<script>
import { ChartPie, ChartBar } from '_c/charts'
export default {
  data() {
    return {
      pieData: [
        { value: 335, name: '直接访问' },
        { value: 310, name: '邮件营销' },
        { value: 234, name: '联盟广告' },
        { value: 135, name: '视频广告' },
        { value: 1548, name: '搜索引擎' }
      ]
    }
  },
  components: {
    ChartPie
  }
}
</script>
<style lang="scss">
#course-details {
  padding: 40px 200px;
  .introductions {
    display: flex;
    margin-bottom: 40px;
    .video {
      width: 40%;
      height: 260px;
      position: relative;
      video {
        width: 100%;
        height: 100%;
      }
      .mask {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
        font-size: 0;
        .ivu-icon {
          font-size: 30px;
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translateX(-50%) translateY(-50%);
          transition: font-size 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
          &:hover {
            font-size: 50px;
            color: #2d8cf0;
          }
        }
      }
    }
    .info {
      width: 60%;
      padding-left: 40px;
      height: 260px;
      overflow: auto;
      .name {
        font-size: 24px;
        height: 60px;
        line-height: 60px;
        margin-bottom: 10px;
      }
      .detail {
        font-size: 16px;
        margin-bottom: 20px;
      }
      .ratings {
        li {
          display: flex;
          height: 35px;
          font-size: 0;
          .name {
            height: 100%;
            line-height: 35px;
            font-size: 14px;
            display: inline-block;
            width: 200px;
            padding-right: 20px;
            text-align: right;
          }
        }
      }
    }
  }
  .desc {
    .teacher-introduction {
      .wrap {
        .item {
          display: flex;
          float: left;
          padding: 5px;
          width: 25%;
          height: 140px;
          overflow: auto;
          border-bottom: 1px solid #e8eaec;
          .avatar-wrap {
            padding: 0 5px;
            img {
              width: 60px;
              height: 60px;
            }
          }
          .introduction {
            padding: 0 5px;
            font-size: 14px;
          }
        }
      }
    }
    .expert-reviews {
      .rating-detail {
        .rating-detail-wrap {
          .rating-item {
            display: flex;
            .avatar {
              width: 50px;
              flex: 0 0 50px;
              height: 50px;
              border: 1px solid red;
              img {
                width: 100%;
                height: 100%;
              }
              .name {
                text-align: center;
              }
            }
            .rating-area {
            }
          }
        }
      }
    }
    .page {
      text-align: center;
      padding-top: 40px;
    }
  }
}
</style>

